arm/io: Use separate memory allocation for mmio handlers
authorShanker Donthineni <shankerd@codeaurora.org>
Wed, 20 Jul 2016 14:00:53 +0000 (09:00 -0500)
committerStefano Stabellini <sstabellini@kernel.org>
Tue, 26 Jul 2016 22:11:48 +0000 (15:11 -0700)
commit96a1eeef79194b04877f1e3f4fcef3f155fbd393
tree358df8dab7ed5cb01298a819c8c0772f32e0a37e
parent9f1441487aa215193a7c00fd9cb80b335542465e
arm/io: Use separate memory allocation for mmio handlers

The number of mmio handlers are limited to a compile time macro
MAX_IO_HANDLER which is 16. This number is not at all sufficient
to support per CPU distributor regions. Either it needs to be
increased to a bigger number, at least CONFIG_NR_CPUS+16, or
allocate a separate memory for mmio handlers dynamically during
domain build.

This patch uses the dynamic allocation strategy to reduce memory
footprint for 'struct domain' instead of static allocation.

Signed-off-by: Shanker Donthineni <shankerd@codeaurora.org>
Acked-by: Julien Grall <julien.grall@arm.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/domain.c
xen/arch/arm/io.c
xen/include/asm-arm/mmio.h